object frmSaidaMateriais: TfrmSaidaMateriais
  Left = 318
  Top = 125
  BorderStyle = bsDialog
  Caption = 'Saida de Materiais'
  ClientHeight = 479
  ClientWidth = 814
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = False
  Position = poScreenCenter
  OnShow = FormShow
  PixelsPerInch = 96
  TextHeight = 13
  object Panel2: TPanel
    Left = 705
    Top = 65
    Width = 109
    Height = 414
    Align = alRight
    BevelInner = bvRaised
    BevelOuter = bvLowered
    TabOrder = 0
    object btnFechar: TSpeedButton
      Left = 3
      Top = 369
      Width = 104
      Height = 42
      Caption = 'Fechar'
      Flat = True
      Font.Charset = ANSI_CHARSET
      Font.Color = clBlack
      Font.Height = -12
      Font.Name = 'Arial'
      Font.Style = []
      Glyph.Data = {
        76010000424D7601000000000000760000002800000020000000100000000100
        04000000000000010000120B0000120B00001000000000000000000000000000
        800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
        FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00330000000000
        03333377777777777F333301111111110333337F333333337F33330111111111
        0333337F333333337F333301111111110333337F333333337F33330111111111
        0333337F333333337F333301111111110333337F333333337F33330111111111
        0333337F3333333F7F333301111111B10333337F333333737F33330111111111
        0333337F333333337F333301111111110333337F33FFFFF37F3333011EEEEE11
        0333337F377777F37F3333011EEEEE110333337F37FFF7F37F3333011EEEEE11
        0333337F377777337F333301111111110333337F333333337F33330111111111
        0333337FFFFFFFFF7F3333000000000003333377777777777333}
      Layout = blGlyphTop
      NumGlyphs = 2
      ParentFont = False
      OnClick = btnFecharClick
    end
    object btnIncluir: TSpeedButton
      Left = 5
      Top = 5
      Width = 99
      Height = 41
      Caption = 'Atender Pedido'
      Flat = True
      Font.Charset = ANSI_CHARSET
      Font.Color = clBlack
      Font.Height = -12
      Font.Name = 'Arial'
      Font.Style = []
      Glyph.Data = {
        76010000424D7601000000000000760000002800000020000000100000000100
        04000000000000010000120B0000120B00001000000000000000000000000000
        800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
        FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00500000000000
        055557777777777775F508888888888880557F5FFFFFFFFFF75F080000000000
        88057577777777775F755080FFFFFF05088057F7FFFFFF7575F70000000000F0
        F08077777777775757F70FFFFFFFFF0F008075F5FF5FF57577F750F00F00FFF0
        F08057F775775557F7F750FFFFFFFFF0F08057FF5555555757F7000FFFFFFFFF
        0000777FF5FFFFF577770900F00000F000907F775777775777F7090FFFFFFFFF
        00907F7F555555557757000FFFFFFFFF0F00777F5FFF5FF57F77550F000F00FF
        0F05557F777577557F7F550FFFFFFFFF0005557F555FFFFF7775550FFF000000
        05555575FF777777755555500055555555555557775555555555}
      Layout = blGlyphTop
      NumGlyphs = 2
      ParentFont = False
      OnClick = btnIncluirClick
    end
    object SpeedButton3: TSpeedButton
      Left = 3
      Top = 49
      Width = 102
      Height = 43
      Caption = 'Visualizar Pedido'
      Flat = True
      Font.Charset = ANSI_CHARSET
      Font.Color = clBlack
      Font.Height = -12
      Font.Name = 'Arial'
      Font.Style = []
      Glyph.Data = {
        36040000424D3604000000000000360000002800000010000000100000000100
        20000000000000040000C40E0000C40E00000000000000000000000000000000
        00000000000000000002000000020000000400000006000000080000000C0000
        0010000000140000000C000000000A0D0F0E43293450000000060000000A0000
        00260B0601382415034A4328085C57330E6C623B157E74481E8F8153259F8658
        2AAD92602FBB71471D7C040506187D46569F923C50FB4F3141348F652230C083
        43EBCA8D50FFC28951FFB98552FFB98651FFB6824DFFB37E48FFB27D46FFB17B
        44FFB07943FFAA7947E9744150B9983E51FF7E3B4E8D205B780004030100C491
        4D6ACF9E69FFAF824DFFBB824AFFCD9357FFD59A5FFFD59D63FFB6845DFFB685
        69FFB07D61FF997460FF973F52FF7F394C9B2758710200000000765726006A4E
        2218997440BFCCA368FFCFA370FFE6BB87FFE7BD89FFCDA585FFF4DFD6FFFBDB
        BFFFFBDBBDFFEBCBBAFF9F7869F1201509300000000000000000765726026E51
        231ED9BE91D7E8CDA3FFD7B68AFFEECFA4FFF0D1A6FFE2C0B1FFFDEBDAFFFDEB
        DAFFFDEDDEFFFDEBD8FFD8B3A3FF7F603C830000000600000000765726007355
        250CE3C596BBE9CCA1FFEED6B2FFF8E4C1FFF9E6C3FFE9C3AFFFFBDEC4FFFEF9
        F3FFFEFBF7FFFEF9F4FFE5CFC8FFB9A07CD70000001C00000000000000007657
        260070511D08E3C492ABFDEAC9FFFEF0D3FFFEF1D5FFE9C7B6FFFCE7D3FFFDF2
        E6FFFEFAF5FFFFFEFDFFE6CCBEFFCDB594FF5539175600000002000000000000
        000000000000AE89401CF5DFB8EBFFF3DAFFFFF7DFFFF6E8D3FFE8C7BBFFF3D9
        CAFFF5E0D9FFF1DBD7FFFAECD7FFD3BD9EFFA38A67A10000000A000000000000
        00000000000000000000D7BA8368FDF0D6FFFFF9E5FFFFFAE7FFFDF8E6FFF1DD
        CEFFF3E0D2FFFEF9E7FFFFF8E4FFE0CBACFFBAA689D100000016000000000000
        0000000000000000000075510D06EDD8B4CDFFF9E7FFFFFCEDFFFFFCEDFFFFFC
        EDFFFFFCEDFFFFFCEDFFFFFCECFFF2E3CAFFC1AA8CF32516022C000000000000
        0000000000000000000000000000D7BF956EFFF6E6FFFFFDF2FFFFFEF3FFFFFE
        F3FFFFFEF3FFFFFEF3FFFFFDF2FFFEF7E8FFCEB599FF63472556000000000000
        00000000000000000000000000009E7A3428FCF0DEFFFFFCF4FFFFFEF7FFFFFE
        F7FFFFFEF7FFFFFEF7FFFFFDF7FFFFFAF0FFD8C4AEFF9175547C000000000000
        000000000000000000000000000018110404EEDABDEFFFF8F0FFFFFAF4FFFFFA
        F4FFFFFAF4FFFFFAF3FFFFF9F3FFFFF7EFFFD8C0A4E9A2865C56000000000000
        000000000000000000000000000000000002E3C89EA5F1DDC2C9F0DEC4C5EBDB
        C4C1EBDBC3BDEDDBC2B9EEDBBFB7EEDABBB3D9BC8F9700000004000000000000
        0000000000000000000000000000000000000201000000000000000000000101
        0000000000000000000000000000000000000000000000000000}
      Layout = blGlyphTop
      ParentFont = False
      OnClick = SpeedButton3Click
    end
  end
  object Panel3: TPanel
    Left = 0
    Top = 0
    Width = 814
    Height = 65
    Align = alTop
    BevelInner = bvRaised
    BevelOuter = bvLowered
    TabOrder = 1
    object Label2: TLabel
      Left = 9
      Top = 12
      Width = 43
      Height = 13
      Caption = 'Pedido:'
      Font.Charset = ANSI_CHARSET
      Font.Color = clBlack
      Font.Height = -11
      Font.Name = 'Verdana'
      Font.Style = []
      ParentFont = False
    end
    object btnPesquisa: TSpeedButton
      Left = 587
      Top = 7
      Width = 96
      Height = 48
      Caption = 'Pesquisar'
      Flat = True
      Font.Charset = ANSI_CHARSET
      Font.Color = clBlack
      Font.Height = -12
      Font.Name = 'Arial'
      Font.Style = []
      Glyph.Data = {
        76010000424D7601000000000000760000002800000020000000100000000100
        04000000000000010000130B0000130B00001000000000000000000000000000
        800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
        FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
        33033333333333333F7F3333333333333000333333333333F777333333333333
        000333333333333F777333333333333000333333333333F77733333333333300
        033333333FFF3F777333333700073B703333333F7773F77733333307777700B3
        33333377333777733333307F8F8F7033333337F333F337F3333377F8F9F8F773
        3333373337F3373F3333078F898F870333337F33F7FFF37F333307F99999F703
        33337F377777337F3333078F898F8703333373F337F33373333377F8F9F8F773
        333337F3373337F33333307F8F8F70333333373FF333F7333333330777770333
        333333773FF77333333333370007333333333333777333333333}
      Layout = blGlyphTop
      NumGlyphs = 2
      ParentFont = False
    end
    object Label1: TLabel
      Left = 190
      Top = 10
      Width = 45
      Height = 13
      Caption = 'Cliente:'
      Font.Charset = ANSI_CHARSET
      Font.Color = clBlack
      Font.Height = -11
      Font.Name = 'Verdana'
      Font.Style = []
      ParentFont = False
    end
    object Label4: TLabel
      Left = 8
      Top = 41
      Width = 98
      Height = 13
      Caption = 'Data de Entrega:'
      Font.Charset = ANSI_CHARSET
      Font.Color = clBlack
      Font.Height = -11
      Font.Name = 'Verdana'
      Font.Style = []
      ParentFont = False
    end
    object Label5: TLabel
      Left = 199
      Top = 41
      Width = 5
      Height = 13
      Caption = '-'
      Font.Charset = ANSI_CHARSET
      Font.Color = clBlack
      Font.Height = -11
      Font.Name = 'Verdana'
      Font.Style = []
      ParentFont = False
    end
    object edtPedido: TEdit
      Left = 62
      Top = 8
      Width = 114
      Height = 19
      Ctl3D = False
      ParentCtl3D = False
      TabOrder = 0
    end
    object dblCliente: TDBLookupComboBox
      Left = 245
      Top = 8
      Width = 331
      Height = 19
      Ctl3D = False
      KeyField = 'cd_cliente'
      ListField = 'fantasia'
      ListSource = DS_Cliente
      ParentCtl3D = False
      TabOrder = 1
    end
    object edtDtInicial: TMaskEdit
      Left = 110
      Top = 37
      Width = 83
      Height = 19
      Ctl3D = False
      EditMask = '!99/99/9999;1;_'
      MaxLength = 10
      ParentCtl3D = False
      TabOrder = 2
      Text = '  /  /    '
    end
    object edtDtFinal: TMaskEdit
      Left = 210
      Top = 37
      Width = 83
      Height = 19
      Ctl3D = False
      EditMask = '!99/99/9999;1;_'
      MaxLength = 10
      ParentCtl3D = False
      TabOrder = 3
      Text = '  /  /    '
    end
  end
  object Panel4: TPanel
    Left = 0
    Top = 63
    Width = 705
    Height = 217
    Align = alCustom
    BevelInner = bvRaised
    BevelOuter = bvLowered
    TabOrder = 2
    object DBGrid1: TDBGrid
      Left = 2
      Top = 2
      Width = 701
      Height = 213
      Align = alClient
      Ctl3D = False
      DataSource = DS_Grid1
      Font.Charset = ANSI_CHARSET
      Font.Color = clGreen
      Font.Height = -11
      Font.Name = 'Verdana'
      Font.Style = []
      Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgConfirmDelete, dgCancelOnExit]
      ParentCtl3D = False
      ParentFont = False
      TabOrder = 0
      TitleFont.Charset = ANSI_CHARSET
      TitleFont.Color = clGreen
      TitleFont.Height = -11
      TitleFont.Name = 'Verdana'
      TitleFont.Style = []
      Columns = <
        item
          Expanded = False
          FieldName = 'CD_PEDIDO'
          Title.Caption = 'Pedido'
          Width = 104
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'DATA'
          Title.Caption = 'Data Entrega'
          Width = 103
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'DS_CLIENTE'
          Title.Caption = 'Cliente'
          Width = 378
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'QUANTIDADE'
          Title.Caption = 'Quantidade'
          Width = 80
          Visible = True
        end>
    end
  end
  object Panel1: TPanel
    Left = 0
    Top = 278
    Width = 705
    Height = 203
    Align = alCustom
    BevelInner = bvRaised
    BevelOuter = bvLowered
    TabOrder = 3
    object DBGrid2: TDBGrid
      Left = 2
      Top = 2
      Width = 701
      Height = 199
      Align = alClient
      Ctl3D = False
      DataSource = DS_Grid2
      Font.Charset = ANSI_CHARSET
      Font.Color = clGreen
      Font.Height = -11
      Font.Name = 'Verdana'
      Font.Style = []
      Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgConfirmDelete, dgCancelOnExit]
      ParentCtl3D = False
      ParentFont = False
      TabOrder = 0
      TitleFont.Charset = ANSI_CHARSET
      TitleFont.Color = clGreen
      TitleFont.Height = -11
      TitleFont.Name = 'Verdana'
      TitleFont.Style = []
      Columns = <
        item
          Expanded = False
          FieldName = 'DESCRICAO'
          Title.Caption = 'Material'
          Width = 294
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'COR'
          Title.Caption = 'Cor'
          Width = 141
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'NR_LARGURA'
          Title.Caption = 'Largura'
          Width = 63
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'NR_ESPESSURA'
          Title.Caption = 'Espessura'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'QUANTIDADE'
          Title.Caption = 'Quantidade'
          Width = 80
          Visible = True
        end>
    end
  end
  object QR_Cliente: TADOQuery
    Active = True
    Connection = dtmSisnnovi.connSisnnovi
    CursorType = ctStatic
    Parameters = <>
    SQL.Strings = (
      'select * from tb_cliente'
      'order by fantasia')
    Left = 304
    Top = 97
  end
  object DS_Cliente: TDataSource
    DataSet = QR_Cliente
    Left = 304
    Top = 145
  end
  object QR_Grid1: TADOQuery
    Connection = dtmSisnnovi.connSisnnovi
    CursorType = ctStatic
    Parameters = <>
    SQL.Strings = (
      
        'SELECT PE.CD_PREVISAO_ENTREGA,  P.CD_PEDIDO, PE.DATA, P.CD_CLIEN' +
        'TE, PE.QUANTIDADE '
      'FROM TB_PREVISAO_ENTREGA PE, TB_PEDIDO P'
      'WHERE PE.CD_PEDIDO = P.CD_PEDIDO'
      'ORDER BY PE.DATA DESC')
    Left = 360
    Top = 97
    object QR_Grid1CD_PREVISAO_ENTREGA: TAutoIncField
      FieldName = 'CD_PREVISAO_ENTREGA'
      ReadOnly = True
    end
    object QR_Grid1CD_PEDIDO: TWideStringField
      FieldName = 'CD_PEDIDO'
      Size = 50
    end
    object QR_Grid1DATA: TDateTimeField
      FieldName = 'DATA'
    end
    object QR_Grid1CD_CLIENTE: TIntegerField
      FieldName = 'CD_CLIENTE'
    end
    object QR_Grid1DS_CLIENTE: TStringField
      FieldKind = fkLookup
      FieldName = 'DS_CLIENTE'
      LookupDataSet = QR_Cliente
      LookupKeyFields = 'cd_cliente'
      LookupResultField = 'fantasia'
      KeyFields = 'CD_CLIENTE'
      Lookup = True
    end
    object QR_Grid1QUANTIDADE: TIntegerField
      FieldName = 'QUANTIDADE'
    end
  end
  object DS_Grid1: TDataSource
    DataSet = QR_Grid1
    Left = 360
    Top = 145
  end
  object QR_Grid2: TADOQuery
    Connection = dtmSisnnovi.connSisnnovi
    CursorType = ctStatic
    DataSource = DS_Grid1
    Parameters = <
      item
        Name = 'CD_PREVISAO_ENTREGA'
        Attributes = [paNullable]
        DataType = ftInteger
        NumericScale = 255
        Precision = 255
        Value = 2
      end>
    SQL.Strings = (
      
        'SELECT PE.CD_PEDIDO, MA.DESCRICAO, MA.COR, MA.NR_LARGURA, MA.NR_' +
        'ESPESSURA, M.QUANTIDADE '
      
        'FROM TB_ATENDIMENTO_PEDIDO A, TB_PREVISAO_ENTREGA PE, TB_MOVIMEN' +
        'TACAO_ESTOQUE M, TB_MATERIAL MA'
      'WHERE A.CD_MOVIMENTACAO = M.CD_MOVIMENTACAO'
      'AND A.CD_PREVISAO_ENTREGA = PE.CD_PREVISAO_ENTREGA'
      'AND MA.CD_MATERIAL = M.CD_MATERIAL'
      'AND PE.CD_PREVISAO_ENTREGA = :CD_PREVISAO_ENTREGA'
      'ORDER BY MA.DESCRICAO')
    Left = 413
    Top = 97
  end
  object DS_Grid2: TDataSource
    DataSet = QR_Grid2
    Left = 413
    Top = 145
  end
end
